<html>
	<head>
		<title>Identity Toolkit Python Lib Sample Page</title>
		<meta name="keywords" content="Identity Toolkit, GIT, Google, Federated Login, federated, python, python lib" />
		<meta name="description" content="Identity Toolkit Python Lib is a library for integrating with your websites to enable federated login. This is the sample websites to tell you how to integrated with your websites." />
		<script type="text/javascript" src="/script/jquery-1.4.4.min.js"></script>
		<link href="/script/sample.css" media="screen" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<div style="width:740px;margin:0 auto;overflow:hidden;">
			<div style="position:relative;background:url('http://photos1.blogger.com/x/blogger2/1999/969950576445500/1600/z/458950/gse_multipart19246.jpg') no-repeat;width:735px;height:122px;">
				<div style="position:absolute;top:40px;left:230px;font-weight:bold;font-size:26px;color:#666666">
					Google Identity Toolkit Sample Site
				</div>
				<div style="position:absolute;top:80px;right:100px;font-size:16px;color:#929292;font-weight:bold">
					GOOGLE NEWS AGGREGATOR
				</div>
				<div style="position:absolute;top:10px;right:0">
					<!-- Put your stuff into the right-top corner -->
				</div>
			</div>
		
		
			<!-- Login part start -->
			<div style="margin-top:10px;margin-bottom:10px;">
				<form action="{% if email %}signout.do{%else%}signin.do{%endif%}" method="post">
				<div id="loginWidget" style="width:380px;height:320px;float:left;">
					
					{% if email %}
						<div class="title">Personal Information</div>
						<div class="color" style="margin-top:10px;"><b>Your email:</b></div>
						<div style="color:green;font-weight:bold">{{email}}</div>
						<div class="color" style="margin-top:10px;"><b>Last Name:</b></div>
						<div style="color:green"><b>{{last_name}}</b></div>
						<div class="color" style="margin-top:10px;"><b>First Name:</b></div>
						<div style="color:green"><b>{{first_name}}</b></div>
						<div class="color" style="margin-top:10px;"><b>Nick Name:</b></div>
						<div style="color:green"><b>{{nick_name}}</b></div>
						<input type="hidden" name="email" value="{{email}}"></input>
						<div style="margin-top:10px;">
							<input type="submit" class="input-submit" value="Logout"></input>
						</div>
					{% else %}
						<div class="title">Login</div>
						<div class="color"><i>Have you already registered?</i></div>
						<div class="color"><a href="/signup.do" title="Sign Up" style="color:blue">Sign up now!</a></div>
						<div class="color" style="margin-top:10px"><i>If you already registered, please enter your user data here:</i></div>
						
						<div class="color" style="margin-top:10px;"><b>Your email:</b></div>
						<div>
							<input id="email" type="text" class="input" name="email"></input>
						</div>
						<div class="color" style="margin-top:10px;"><b>Password:</b></div>
						<div>
							<input id="password" type="password" class="input" name="password"></input>
						</div>
						<div style="margin-top:10px;">
							<input type="submit" class="input-submit" value="Sign in"></input>
						</div>
					{% endif %}
					
					
					<div style="margin-top:10px;" class="color">
						<i>If you are interested in Google Identity Toolkit, you can download <a href="javascript:void(0)"  style="color:blue">Python Lib</a> here.</i>
					</div>
				</div>
				</form>
		
				<div style="float:left;width:340px;margin-left:20px;height:320px;">
					<div class="title">Recommend</div>
					<center>
					<script type="text/javascript"><!--
					// Put your Google adsense client id here.
					google_ad_client = "ca-pub-6291828645013243";
					// Put your Google adsense slot id here.
					google_ad_slot = "1073267547";
					
					google_ad_width = 336;
					
					google_ad_height = 280;
					
					//-->
					
					</script>
					
					<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
					</center>
				</div>
			</div>
			<!-- Login part end -->
			
			
		
			<div style="margin-top:10px;">
				<div id="content" style="width:380px;float:left;margin-top:20px;">
					<div class="title">
						<div class="fl">Top News</div>
						<div class="fr" style="font-size:10px;color:#929292;font-weight:normal">updated until {{top_news_date}}</div>
						<div class="clear"></div>
					</div>
					<div class="topnews">
						<ul>
							{% for topnews in top_news_list %}
								{% if forloop.counter <= 10 %}
								<li style="width:380px;background:url('/images/{{forloop.counter}}.gif') 0 5px no-repeat;text-indent:17px;">{{key}}<a href="{{ topnews.url }}" title="{{ topnews.title }}" target=_blank>{{ topnews.title }}</a></li>
								{% endif %}
							{% endfor %}
							
						</ul>
					</div>
				</div>
				
				<div style="float:left;width:340px;margin-left:20px;margin-top:20px;">
					<div class="title">
						<div class="fl">Top Funs</div>
						<div class="fr" style="font-size:10px;color:#929292;font-weight:normal">updated until {{fun_news_date}}</div>
						<div class="clear"></div>
					</div>
					<div class="funnews">
						<ul>
							{% for news in fun_news_list %}
								{% if news.snapshot %}
									{% if forloop.counter <= 6 %}
								<li style="width:112px;float:left;text-align:center">
									<a href="{{ news.url }}" target=_blank><img src="{{ news.snapshot }}"  title="{{ news.title }}" border=0/></a><br>
									<div class="color" style="margin-left:10px;width:80%;text-align:center;height:25px;line-height:25px;overflow:hidden;font-size:12px;">{{news.title}}</div>
								</li>
									{% endif %}
								{% endif %}
							{% endfor %}
							
						</ul>
					</div>
				</div>
				<div class="clear"></div>
			</div>
			
			
			<div style="margin-top:5px;">
				<div class="title">
					<div class="fl">Popular Contents</div>
					<div class="fr" style="font-size:10px;color:#929292;font-weight:normal">updated until {{fun_news_date}}</div>
					<div class="clear"></div>
				</div>
				
				<div class="newstab">
					<ul>
						<li style="width:20px"></li>
						<li class="selected">Popular</li>
						<li>World</li>
						<li>Sci</li>
						<li>Business</li>
						<li>Sports</li>
						<li>Health</li>
						<li style="width:20px"></li>
					</ul>
					
					<div class="clear"></div>
				</div>
				
				<div class="content" id="popular">
					<div class="image_section">
						<ul>
						{% for news in popular_news_list %}
							{% if news.snapshot %}
								{% if forloop.counter <= 8 %}
							<li style="width:112px;float:left;text-align:center">
								<a href="{{ news.url }}" target=_blank><img src="{{ news.snapshot }}"  title="{{ news.title }}" border=0/></a><br>
								<div class="color" style="margin-left:10px;width:80%;text-align:center;height:25px;line-height:25px;overflow:hidden">{{news.title}}</div>
							</li>
								{% endif %}
							{% endif %}
						{% endfor %}
						</ul>
					</div>
					<div class="link_section">
						<ul>
						{% for news in popular_news_list %}
							{% if forloop.counter <= 20 %}
							<li><a href="{{ news.url }}" title="{{ news.title }}" target=_blank>{{ news.title }}</a></li>
							{% endif %}
						{% endfor %}
						</ul>
					</div>
				</div>
				
				<div class="content" id="world" style="display:none">
					<div class="image_section">
						<ul>
						{% for news in world_news_list %}
							{% if news.snapshot %}
								{% if forloop.counter <= 8 %}
							<li style="width:112px;float:left;text-align:center">
								<a href="{{ news.url }}" target=_blank><img src="{{ news.snapshot }}"  title="{{ news.title }}" border=0/></a><br>
								<div class="color" style="margin-left:10px;width:80%;text-align:center;height:25px;line-height:25px;overflow:hidden">{{news.title}}</div>
							</li>
								{% endif %}
							{% endif %}
						{% endfor %}
						</ul>
					</div>
					<div class="link_section">
						<ul>
						{% for news in world_news_list %}
							{% if forloop.counter <= 20 %}
							<li><a href="{{ news.url }}" title="{{ news.title }}" target=_blank>{{ news.title }}</a></li>
							{% endif %}
						{% endfor %}
						</ul>
					</div>
				</div>
				
				<div class="content" id="sci" style="display:none">
					<div class="image_section">
						<ul>
						{% for news in sci_news_list %}
							{% if news.snapshot %}
								{% if forloop.counter <= 8 %}
							<li style="width:112px;float:left;text-align:center">
								<a href="{{ news.url }}" target=_blank><img src="{{ news.snapshot }}"  title="{{ news.title }}" border=0/></a><br>
								<div class="color" style="margin-left:10px;width:80%;text-align:center;height:25px;line-height:25px;overflow:hidden">{{news.title}}</div>
							</li>
								{% endif %}
							{% endif %}
						{% endfor %}
						</ul>
					</div>
					<div class="link_section">
						<ul>
						{% for news in sci_news_list %}
							{% if forloop.counter <= 20 %}
							<li><a href="{{ news.url }}" title="{{ news.title }}" target=_blank>{{ news.title }}</a></li>
							{% endif %}
						{% endfor %}
						</ul>
					</div>
				</div>
				
				<div class="content" id="business" style="display:none">
					<div class="image_section">
						<ul>
						{% for news in business_news_list %}
							{% if news.snapshot %}
								{% if forloop.counter <= 8 %}
							<li style="width:112px;float:left;text-align:center">
								<a href="{{ news.url }}" target=_blank><img src="{{ news.snapshot }}"  title="{{ news.title }}" border=0/></a><br>
								<div class="color" style="margin-left:10px;width:80%;text-align:center;height:25px;line-height:25px;overflow:hidden">{{news.title}}</div>
							</li>
								{% endif %}
							{% endif %}
						{% endfor %}
						</ul>
					</div>
					<div class="link_section">
						<ul>
						{% for news in business_news_list %}
							{% if forloop.counter <= 20 %}
							<li><a href="{{ news.url }}" title="{{ news.title }}" target=_blank>{{ news.title }}</a></li>
							{% endif %}
						{% endfor %}
						</ul>
					</div>
				</div>
				
				<div class="content" id="sports" style="display:none">
					<div class="image_section">
						<ul>
						{% for news in sports_news_list %}
							{% if news.snapshot %}
								{% if forloop.counter <= 8 %}
							<li style="width:112px;float:left;text-align:center">
								<a href="{{ news.url }}" target=_blank><img src="{{ news.snapshot }}"  title="{{ news.title }}" border=0/></a><br>
								<div class="color" style="margin-left:10px;width:80%;text-align:center;height:25px;line-height:25px;overflow:hidden">{{news.title}}</div>
							</li>
								{% endif %}
							{% endif %}
						{% endfor %}
						</ul>
					</div>
					<div class="link_section">
						<ul>
						{% for news in sports_news_list %}
							{% if forloop.counter <= 20 %}
							<li><a href="{{ news.url }}" title="{{ news.title }}" target=_blank>{{ news.title }}</a></li>
							{% endif %}
						{% endfor %}
						</ul>
					</div>
				</div>
				
				<div class="content" id="health" style="display:none">
					<div class="image_section">
						<ul>
						{% for news in health_news_list %}
							{% if news.snapshot %}
								{% if forloop.counter <= 8 %}
							<li style="width:112px;float:left;text-align:center">
								<a href="{{ news.url }}" target=_blank><img src="{{ news.snapshot }}"  title="{{ news.title }}" border=0/></a><br>
								<div class="color" style="margin-left:10px;width:80%;text-align:center;height:25px;line-height:25px;overflow:hidden">{{news.title}}</div>
							</li>
								{% endif %}
							{% endif %}
						{% endfor %}
						</ul>
					</div>
					<div class="link_section">
						<ul>
						{% for news in health_news_list %}
							{% if forloop.counter <= 20 %}
							<li><a href="{{ news.url }}" title="{{ news.title }}" target=_blank>{{ news.title }}</a></li>
							{% endif %}
						{% endfor %}
						</ul>
					</div>
				</div>
				
				<div class="clear"></div>
				
			</div>
			
			<div class="footer">
				<div style="width:100%;margin-top:10px;text-align:center;" class="color">
					Powered by Google Identity Toolkit Team, 2010/06/21
				<div>
			</div>
		
		</div>
		
		
		<script>
		
		$(document).ready(function() {
			setTimeout(function() {$('#email').focus();}, 200);
			
			var lastSelectedTab = $('.newstab li.selected'); 
			$('.newstab li').mouseover(function() {
				if ($(this).text() && $(this).text() != lastSelectedTab.text()) {
					var id = $(this).text().toLowerCase();
					var last_id = lastSelectedTab.text().toLowerCase();
					lastSelectedTab.removeClass('selected');
					$(this).addClass('selected');
					lastSelectedTab = $(this);
					
					$('#' + id).css('display', 'block');
					$('#' + last_id).css('display', 'none');
				}
			});
		});
		
		
		
		
		</script>
	</body>
</html>
